package com.wzh.project.redis.bean;

import java.io.Serializable;

/**
 * 自定义传输message对象
 * @author wzh
 *
 */
public class RedisMessage implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 方向<br>
	 * 外网到内网WN<br>
	 * 内网到外网NW<br>
	 */
	private String direction;
	/**
	 * 是否需要回复
	 */
	private boolean isReply=false;
	/**
	 * 回复的队列<br>
	 * 之所以包装到消息体中，为了针对分布式部署的情况
	 */
	private String replyQueueName;
	/**
	 * 发送id 用于发送方的唯一发送id 用于接收回复消息的时候获取
	 */
	private String uuid;
	/**
	 * 应该执行的服务名
	 */
	private String serviceName;
	/**
	 * 真正的消息对象
	 */
	private Object obj;
	
	public String getDirection() {
		return direction;
	}
	public void setDirection(String direction) {
		this.direction = direction;
	}
	public boolean isReply() {
		return isReply;
	}
	public void setReply(boolean isReply) {
		this.isReply = isReply;
	}
	
	public String getReplyQueueName() {
		return replyQueueName;
	}
	public void setReplyQueueName(String replyQueueName) {
		this.replyQueueName = replyQueueName;
	}
	public String getUuid() {
		return uuid;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public String getServiceName() {
		return serviceName;
	}
	public void setServiceName(String serviceName) {
		this.serviceName = serviceName;
	}
	public Object getObj() {
		return obj;
	}
	public void setObj(Object obj) {
		this.obj = obj;
	}
	
}
